import { defineComponent } from 'vue'

export default defineComponent({
  name: 'avatarComponent',
  props: {
    model: {
      type: Array,
      required: true,
    },
  },
  emits: ['update:model'],
  setup() {
    return () => (
      <>
        <a-upload
          ref="input-ref"
          v-slots={{
            default: () => (
              <>
                <div
                  class={{
                    'w-68px h-68px bg-#0056FF border-rd-50% font-size-14px fw-600 c-#fff flex flex-col items-center justify-center cursor-pointer': true,
                    "before:content-['上传']": true,
                    "after:content-['文件']": true,
                  }}
                ></div>
              </>
            ),
          }}
        />
      </>
    )
  },
})
